
/*
* @ author: karim daher
* @ date: 04-28-2008
* @version: 0.1
 */

class ExpertiseController {

    //TODO: check why the names did not appear in browser (firefox)
    def searchExpertise = {
        def expertiseList = Expertise.findAllByTitleLike("%${params.query}%")
        render(contentType: "text/xml") {
            results() {
                expertiseList.each { expertise ->
                    result(){
                        title(expertise.title)
                        id(expertise.id)
                    }
                }
            }
        }
    }

}